Intel EPT: Fix out of range right shift on 32-bit host
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:40:18 +0000 (16:40 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:40:18 +0000 (16:40 +0100)
commitc92aec02ad55858cd5767f37ee7a9069ba2f248b
tree33e78d710e34ebbebd04ac0f0751841490f7ec6f
parentcecdcf59c4d677b3d6960e3789795df0fc20e370
Intel EPT: Fix out of range right shift on 32-bit host

Currently, there has a logic to check whether the EPT GFN is exceeding
guest physical address width. It uses right shift(>>) to implement the
check. But the right shift count is greater than the width of the
type(unsigned long = 32) under the PAE. And this will cause guest boot
fail under PAE with EPT supported.

Signed-off-by: Li Xin <xin.li@intel.com>
Signed-off-by: Zhang Yang <yang.z.zhang@intel.com>
xen/arch/x86/mm/hap/p2m-ept.c